<?php
$exmatid = $_GET['param1'];
require('../../cofd/common.php');
$mysqli = $conn;
$stmt = $mysqli->prepare("DELETE FROM exam_ans WHERE lisid = ?");
$stmt->bind_param('s', $exmatid); 
if($stmt->execute()){
    echo json_encode(array('status' => 200));
}else{
    echo json_encode(array('status' => 500));
}
$stmt->close();
$mysqli->close();